package com.sl.mes.db.vo;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;

public class PdWkgMar {
    private String pkWkgMar;

    private Double abilityoccupy;

    private String castmeasureid;

    private String cmaterialclassid;

    private String cmaterialid;

    private String cmaterialvid;

    private String cmeasureid;

    private Integer dr;

    private String innercode;

    private Double nastnum;

    private Double nnum;

    private String pkGroup;

    private String pkOrg;

    private String pkOrgV;

    private String pkWkgid;

    private Integer timeunit;

    private LocalDateTime ts;

    private String vchangerate;

    public String getPkWkgMar() {
        return pkWkgMar;
    }

    public void setPkWkgMar(String pkWkgMar) {
        this.pkWkgMar = pkWkgMar;
    }

    public Double getAbilityoccupy() {
        return abilityoccupy;
    }

    public void setAbilityoccupy(Double abilityoccupy) {
        this.abilityoccupy = abilityoccupy;
    }

    public String getCastmeasureid() {
        return castmeasureid;
    }

    public void setCastmeasureid(String castmeasureid) {
        this.castmeasureid = castmeasureid;
    }

    public String getCmaterialclassid() {
        return cmaterialclassid;
    }

    public void setCmaterialclassid(String cmaterialclassid) {
        this.cmaterialclassid = cmaterialclassid;
    }

    public String getCmaterialid() {
        return cmaterialid;
    }

    public void setCmaterialid(String cmaterialid) {
        this.cmaterialid = cmaterialid;
    }

    public String getCmaterialvid() {
        return cmaterialvid;
    }

    public void setCmaterialvid(String cmaterialvid) {
        this.cmaterialvid = cmaterialvid;
    }

    public String getCmeasureid() {
        return cmeasureid;
    }

    public void setCmeasureid(String cmeasureid) {
        this.cmeasureid = cmeasureid;
    }

    public Integer getDr() {
        return dr;
    }

    public void setDr(Integer dr) {
        this.dr = dr;
    }

    public String getInnercode() {
        return innercode;
    }

    public void setInnercode(String innercode) {
        this.innercode = innercode;
    }

    public Double getNastnum() {
        return nastnum;
    }

    public void setNastnum(Double nastnum) {
        this.nastnum = nastnum;
    }

    public Double getNnum() {
        return nnum;
    }

    public void setNnum(Double nnum) {
        this.nnum = nnum;
    }

    public String getPkGroup() {
        return pkGroup;
    }

    public void setPkGroup(String pkGroup) {
        this.pkGroup = pkGroup;
    }

    public String getPkOrg() {
        return pkOrg;
    }

    public void setPkOrg(String pkOrg) {
        this.pkOrg = pkOrg;
    }

    public String getPkOrgV() {
        return pkOrgV;
    }

    public void setPkOrgV(String pkOrgV) {
        this.pkOrgV = pkOrgV;
    }

    public String getPkWkgid() {
        return pkWkgid;
    }

    public void setPkWkgid(String pkWkgid) {
        this.pkWkgid = pkWkgid;
    }

    public Integer getTimeunit() {
        return timeunit;
    }

    public void setTimeunit(Integer timeunit) {
        this.timeunit = timeunit;
    }

    public LocalDateTime getTs() {
        return ts;
    }

    public void setTs(LocalDateTime ts) {
        this.ts = ts;
    }

    public String getVchangerate() {
        return vchangerate;
    }

    public void setVchangerate(String vchangerate) {
        this.vchangerate = vchangerate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pkWkgMar=").append(pkWkgMar);
        sb.append(", abilityoccupy=").append(abilityoccupy);
        sb.append(", castmeasureid=").append(castmeasureid);
        sb.append(", cmaterialclassid=").append(cmaterialclassid);
        sb.append(", cmaterialid=").append(cmaterialid);
        sb.append(", cmaterialvid=").append(cmaterialvid);
        sb.append(", cmeasureid=").append(cmeasureid);
        sb.append(", dr=").append(dr);
        sb.append(", innercode=").append(innercode);
        sb.append(", nastnum=").append(nastnum);
        sb.append(", nnum=").append(nnum);
        sb.append(", pkGroup=").append(pkGroup);
        sb.append(", pkOrg=").append(pkOrg);
        sb.append(", pkOrgV=").append(pkOrgV);
        sb.append(", pkWkgid=").append(pkWkgid);
        sb.append(", timeunit=").append(timeunit);
        sb.append(", ts=").append(ts);
        sb.append(", vchangerate=").append(vchangerate);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PdWkgMar other = (PdWkgMar) that;
        return (this.getPkWkgMar() == null ? other.getPkWkgMar() == null : this.getPkWkgMar().equals(other.getPkWkgMar()))
            && (this.getAbilityoccupy() == null ? other.getAbilityoccupy() == null : this.getAbilityoccupy().equals(other.getAbilityoccupy()))
            && (this.getCastmeasureid() == null ? other.getCastmeasureid() == null : this.getCastmeasureid().equals(other.getCastmeasureid()))
            && (this.getCmaterialclassid() == null ? other.getCmaterialclassid() == null : this.getCmaterialclassid().equals(other.getCmaterialclassid()))
            && (this.getCmaterialid() == null ? other.getCmaterialid() == null : this.getCmaterialid().equals(other.getCmaterialid()))
            && (this.getCmaterialvid() == null ? other.getCmaterialvid() == null : this.getCmaterialvid().equals(other.getCmaterialvid()))
            && (this.getCmeasureid() == null ? other.getCmeasureid() == null : this.getCmeasureid().equals(other.getCmeasureid()))
            && (this.getDr() == null ? other.getDr() == null : this.getDr().equals(other.getDr()))
            && (this.getInnercode() == null ? other.getInnercode() == null : this.getInnercode().equals(other.getInnercode()))
            && (this.getNastnum() == null ? other.getNastnum() == null : this.getNastnum().equals(other.getNastnum()))
            && (this.getNnum() == null ? other.getNnum() == null : this.getNnum().equals(other.getNnum()))
            && (this.getPkGroup() == null ? other.getPkGroup() == null : this.getPkGroup().equals(other.getPkGroup()))
            && (this.getPkOrg() == null ? other.getPkOrg() == null : this.getPkOrg().equals(other.getPkOrg()))
            && (this.getPkOrgV() == null ? other.getPkOrgV() == null : this.getPkOrgV().equals(other.getPkOrgV()))
            && (this.getPkWkgid() == null ? other.getPkWkgid() == null : this.getPkWkgid().equals(other.getPkWkgid()))
            && (this.getTimeunit() == null ? other.getTimeunit() == null : this.getTimeunit().equals(other.getTimeunit()))
            && (this.getTs() == null ? other.getTs() == null : this.getTs().equals(other.getTs()))
            && (this.getVchangerate() == null ? other.getVchangerate() == null : this.getVchangerate().equals(other.getVchangerate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPkWkgMar() == null) ? 0 : getPkWkgMar().hashCode());
        result = prime * result + ((getAbilityoccupy() == null) ? 0 : getAbilityoccupy().hashCode());
        result = prime * result + ((getCastmeasureid() == null) ? 0 : getCastmeasureid().hashCode());
        result = prime * result + ((getCmaterialclassid() == null) ? 0 : getCmaterialclassid().hashCode());
        result = prime * result + ((getCmaterialid() == null) ? 0 : getCmaterialid().hashCode());
        result = prime * result + ((getCmaterialvid() == null) ? 0 : getCmaterialvid().hashCode());
        result = prime * result + ((getCmeasureid() == null) ? 0 : getCmeasureid().hashCode());
        result = prime * result + ((getDr() == null) ? 0 : getDr().hashCode());
        result = prime * result + ((getInnercode() == null) ? 0 : getInnercode().hashCode());
        result = prime * result + ((getNastnum() == null) ? 0 : getNastnum().hashCode());
        result = prime * result + ((getNnum() == null) ? 0 : getNnum().hashCode());
        result = prime * result + ((getPkGroup() == null) ? 0 : getPkGroup().hashCode());
        result = prime * result + ((getPkOrg() == null) ? 0 : getPkOrg().hashCode());
        result = prime * result + ((getPkOrgV() == null) ? 0 : getPkOrgV().hashCode());
        result = prime * result + ((getPkWkgid() == null) ? 0 : getPkWkgid().hashCode());
        result = prime * result + ((getTimeunit() == null) ? 0 : getTimeunit().hashCode());
        result = prime * result + ((getTs() == null) ? 0 : getTs().hashCode());
        result = prime * result + ((getVchangerate() == null) ? 0 : getVchangerate().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table pd_wkg_mar
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    public enum Column {
        pkWkgMar("pk_wkg_mar", "pkWkgMar", "CHAR", false),
        abilityoccupy("abilityoccupy", "abilityoccupy", "DOUBLE", false),
        castmeasureid("castmeasureid", "castmeasureid", "VARCHAR", false),
        cmaterialclassid("cmaterialclassid", "cmaterialclassid", "VARCHAR", false),
        cmaterialid("cmaterialid", "cmaterialid", "VARCHAR", false),
        cmaterialvid("cmaterialvid", "cmaterialvid", "VARCHAR", false),
        cmeasureid("cmeasureid", "cmeasureid", "VARCHAR", false),
        dr("dr", "dr", "INTEGER", false),
        innercode("innercode", "innercode", "VARCHAR", false),
        nastnum("nastnum", "nastnum", "DOUBLE", false),
        nnum("nnum", "nnum", "DOUBLE", false),
        pkGroup("pk_group", "pkGroup", "VARCHAR", false),
        pkOrg("pk_org", "pkOrg", "VARCHAR", false),
        pkOrgV("pk_org_v", "pkOrgV", "VARCHAR", false),
        pkWkgid("pk_wkgid", "pkWkgid", "CHAR", false),
        timeunit("timeunit", "timeunit", "INTEGER", false),
        ts("ts", "ts", "TIMESTAMP", false),
        vchangerate("vchangerate", "vchangerate", "VARCHAR", false);

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private static final String BEGINNING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private static final String ENDING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String column;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final boolean isColumnNameDelimited;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String javaProperty;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String jdbcType;

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String value() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getValue() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getJavaProperty() {
            return this.javaProperty;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getJdbcType() {
            return this.jdbcType;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
            this.isColumnNameDelimited = isColumnNameDelimited;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String asc() {
            return this.getEscapedColumnName() + " ASC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public static Column[] excludes(Column ... excludes) {
            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
            if (excludes != null && excludes.length > 0) {
                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
            }
            return columns.toArray(new Column[]{});
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table pd_wkg_mar
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getEscapedColumnName() {
            if (this.isColumnNameDelimited) {
                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
            } else {
                return this.column;
            }
        }
    }
}